package offertest;

/**
 * @ClassName Test
 * @Description
 * @Author ZJX
 * @Date 2025/4/8 11:44
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        Thread thread = new Thread(new Thread(){
            @Override
            public void run() {
                System.out.println("你好");
            }
        });

        thread.start();


        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("还记得急急急");
            }
        });

        thread1.start();
    }

    Thread t3 = new Thread(() -> System.out.println("使⽤匿名类创建 Thread ⼦类对"));
}
